<?php
	
class Table_Parametres extends Zend_Db_Table_Abstract
{
    protected $_name    = 'parametres';
    protected $_primary = 'LOGIN';
    protected $_sequence = false;
 	
    
    public function getUtilisateurByLogin($login){
    	return $this->fetchRow($this
    		->select()
    		->where('LOGIN = ?', $login)
    		);
    }
    
    public function encryptPasswd($pass){
    	return hash('sha256', $pass);
    }
}
?>